package top.dark.design.patterns.singleton;

/**
 * Author: Darkn
 * description: 懒汉式，多线程不安全，能懒加载
 * Create Time: 2021/4/25 16:25
 */
public class Singleton03 {
    private static Singleton03 singleton = null;
    public static Singleton03 getInstance() {
        if (singleton == null) {
            singleton = new Singleton03();
        }
        return singleton;
    }
}
